package com.baomidou.test.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author WeiHui-Z
 * @since 2016-12-12
 */
@TableName("simple_book")
public class SimpleBook extends Model<SimpleBook> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value="bookId")
	private Integer bookid;
	/**
	 * 
	 */
	@TableField(value="bookName")
	private String bookname;
	/**
	 * 
	 */
	private String publisher;


	public Integer getBookid() {
		return bookid;
	}

	public void setBookid(Integer bookid) {
		this.bookid = bookid;
	}

	public String getBookname() {
		return bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	@Override
	protected Serializable pkVal() {
		return this.bookid;
	}

}
